<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name=”renderer” content=”webkit”>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<meta name="format-detection" content="telephone=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<title>东明家居集团-活动分析管理系统</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/iview.css">
<link rel="stylesheet" href="css/style.css">
    <script src="js/jquery-1.11.1.min.js" type="text/javascript"></script>
    <link href="js/toastr/toastr.css" rel="stylesheet">
</head>
<body>
<div class="container-fluid" id="app">
     <!-- breadcrumb -->
      <template class="page-header">
          <breadcrumb class="pull-left">
              <breadcrumb-item to="welcome.html" >首页</breadcrumb-item>
              <breadcrumb-item>仓库管理</breadcrumb-item>
          </breadcrumb>
      </template>
      <!-- 搜索条件 -->
      <div class="table-margin">
          <row>
              <i-col span="3" class-name="mr10" style="width:200px;">
                  <i-input v-model="WhNameOrNo" placeholder="请输入仓库编号或名称" ></i-input>
              </i-col>                                          
              <i-button type="primary" class="mr10" @click="querytable">搜索</i-button>
              <i-button type="primary" class="mr10" @click="openModel1" id="SaveWhIsOrNot">添加仓库</i-button>
          </row>            
      </div>
      <!-- 搜索结果 -->
      <div class="table-margin">
           <i-table :columns="columns1" :data="data1" algin="center" class="table_style"></i-table>  
      </div>
     <!-- 添加仓库弹框 -->
     <modal v-model="modal1" title="添加仓库" @on-ok="saveWh" @on-cancel="cancel" width='600'>
                <i-form :model="formItem" label-position="right" :label-width="120">
                        <row>   
                            <i-col span="16" offset="1">
                                <Form-item label="仓库编号：" >
                                      <i-input v-model="formItem.WarehouseNo" placeholder="KF-00001" disabled></i-input>
                                </Form-item>
                            </i-col>
                            <i-col span="16" offset="1">
                                <Form-item label="所属店面：" >
                                    <i-input v-model="formItem.Store"  disabled></i-input>
                                      <!--<i-select v-model="formItem.Store" disabled>-->
                                          <!--<i-option value="东二环店">东二环店</i-option>-->
                                          <!--<i-option value="建华店">建华店</i-option>-->
                                          <!--<i-option value="金利来店">金利来店</i-option>-->
                                          <!--<i-option value="北杜店">北杜店</i-option>-->
                                          <!--<i-option value="西二环店">西二环店</i-option>-->
                                          <!--<i-option value="北二环店">北二环店</i-option>-->
                                      <!--</i-select> -->
                                </Form-item>
                            </i-col>
                            <i-col span="16" offset="1">
                                <Form-item label="仓库名称：" >
                                      <i-input v-model="formItem.Name" placeholder="请输入仓库名称"></i-input>
                                </Form-item>
                            </i-col>
                            <i-col span="16" offset="1">
                                <Form-item label="使用部门：" >
                                      <i-select v-model="formItem.UseBm">
                                          <i-option value="办公室">办公室</i-option>
                                          <i-option value="财务科">财务科</i-option>
                                      </i-select> 
                                </Form-item>
                            </i-col>                                                                                                                     
                            <i-col span="16" offset="1">
                                <Form-item label="描述：" >
                                      <i-input v-model="formItem.Remark" type="textarea" :rows="2" placeholder="请描述仓库具体位置"></i-input>
                                </Form-item>
                            </i-col>
                    </row>
              </i-form>
       </modal>
    <!-- 编辑仓库弹框 -->
    <modal v-model="modal2" title="编辑仓库" @on-ok="editWh" @on-cancel="cancel" width='600'>
        <i-form :model="EditFormItem" label-position="right" :label-width="120">
            <row>
                <i-col span="16" offset="1">
                    <Form-item label="仓库编号：" >
                        <i-input v-model="EditFormItem.WarehouseNo" placeholder="KF-00001" disabled></i-input>
                    </Form-item>
                </i-col>
                <i-col span="16" offset="1">
                    <Form-item label="所属店面：" >
                        <i-input v-model="EditFormItem.Store"  disabled></i-input>
                        <!--<i-select v-model="formItem.Store" disabled>-->
                        <!--<i-option value="东二环店">东二环店</i-option>-->
                        <!--<i-option value="建华店">建华店</i-option>-->
                        <!--<i-option value="金利来店">金利来店</i-option>-->
                        <!--<i-option value="北杜店">北杜店</i-option>-->
                        <!--<i-option value="西二环店">西二环店</i-option>-->
                        <!--<i-option value="北二环店">北二环店</i-option>-->
                        <!--</i-select> -->
                    </Form-item>
                </i-col>
                <i-col span="16" offset="1">
                    <Form-item label="仓库名称：" >
                        <i-input v-model="EditFormItem.Name" placeholder="请输入仓库名称"></i-input>
                    </Form-item>
                </i-col>
                <i-col span="16" offset="1">
                    <Form-item label="使用部门：" >
                        <i-select v-model="EditFormItem.UseBm">
                            <i-option value="办公室">办公室</i-option>
                            <i-option value="财务科">财务科</i-option>
                        </i-select>
                    </Form-item>
                </i-col>
                <i-col span="16" offset="1">
                    <Form-item label="描述：" >
                        <i-input v-model="EditFormItem.Remark" type="textarea" :rows="2" placeholder="请描述仓库具体位置"></i-input>
                    </Form-item>
                </i-col>
            </row>
        </i-form>
    </modal>
</div>
</body>
<script src="js/vue.js"></script>
<script src="js/iview.min.js"></script>
<script src="js/toastr/toastr.min.js"></script>
<script src="js/entrepot/entrepot.js"></script>
</html>

  

  

  

  

  
